import Vue from 'vue';
import App from './app.vue';
import VueRouter from 'vue-router';
import routes from './routes';
import ZXUI from '../components';
import icon from './icon.json';
import ZxSnippet from './common/snippet.vue';
import './icon.sass';
import '../components/style/index.scss';
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css';

Vue.prototype.$icon = icon;

Vue.use(VueRouter);
Vue.use(ZXUI);
Vue.use(Antd);

Vue.component(ZxSnippet.name, ZxSnippet);

const router = new VueRouter({
    routes,
    mode: 'hash',
});

new Vue({
    router,
    render: h => h(App),
}).$mount('#app');
